from flask import Flask, render_template, request, redirect, url_for, session

app = Flask(__name__)
app.config['TEMPLATES_AUTO_RELOAD'] = True  # 自动重载模板

# 禁用静态文件缓存（开发环境）
@app.after_request
def add_header(response):
    response.cache_control.max_age = 0
    return response

@app.route('/index')
def index():
    return render_template('index.html')

@app.route('/certification')
def certification():
    return render_template('certification.html')

@app.route('/example')
def example():
    return render_template('example.html')

@app.route('/contact')
def contact():
    return render_template('contact.html')

if __name__ == '__main__':
    app.run(debug=True,port=5001)  # 启用调试模式